package com.xm.shop.mapper;


import com.xm.shop.pojo.entity.Address;
import com.xm.shop.pojo.qo.AddressAddQO;
import com.xm.shop.pojo.qo.AddressStatusQO;
import com.xm.shop.pojo.qo.AddressUpdateQO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author ludi
 * @date:2020/9/1 15:30
 * @description:地址Mapper
 */
@Repository
public interface AddressMapper {
    List<Address> selectAddressByUserId(Integer userId);

    Integer addAddress(AddressAddQO addressAddQO);

    Integer deleteAddress(Integer addressId);

    Integer updateAddress(AddressUpdateQO addressUpdateQO);

    Integer updateStatus(AddressStatusQO addressStatusQO);
}
